package com.varbal.icegame.bean;

import com.varbal.icegame.action.AnimalAction;
import com.varbal.icegame.action.NallAction;

/**
 * 动物实体类
 * 实现了动物行动的接口和一个空接口用于扩展
 */
public class Animal implements AnimalAction, NallAction {
	/**
	 * 品种名称
	 */
	private String typeName;
	
	private boolean orHungry;
	
	

	public void setOrHungry(boolean orHungry) {
		this.orHungry = orHungry;
	}

	public boolean getOrHungry() {
		return orHungry;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

    /**
     * 创建对象时必须给品种赋值
     * @param typeName
     */
	public Animal(String typeName) {
		super();
		this.typeName = typeName;
		this.orHungry = false;
	}

	@Override
	public void run() {
	}

	@Override
	public void say() {
	}

	@Override
	public boolean orEat(String food) {
		return false;
	}

	@Override
	public void seeFood(String food) {
	}

	@Override
	public String orHungry() {
		return null;
	}

	@Override
	public void eat() {
		
	}
	
}
